import request from '@/utils/request'
import $ from 'jquery'
import {baseUrl} from "@/utils/ruoyi";


// 查询git项目管理列表
export function listProject(query) {
    return request({
        url: '/resource/project/list',
        method: 'get',
        params: query
    })
}

// 查询git项目管理详细
export function getProject(id) {
    return request({
        url: '/resource/project/' + id,
        method: 'get'
    })
}

// 新增git项目管理
export function addProject(data) {
    return request({
        url: '/resource/project',
        method: 'post',
        data: data
    })
}

// 修改git项目管理
export function updateProject(data) {
    return request({
        url: '/resource/project',
        method: 'put',
        data: data
    })
}

// 删除git项目管理
export function delProject(id) {
    return request({
        url: '/resource/project/' + id,
        method: 'delete'
    })
}

export function buildProject(id) {
    return request({
        url: '/resource/project/build/' + id,
        method: 'put'
    })
}

export function closebuild(id) {
    return request({
        url: '/resource/project/closebuild/' + id,
        method: 'put'
    })
}


export function closeUpdate(id) {
    return request({
        url: '/resource/project/closeUpdate/' + id,
        method: 'put'
    })
}

export function seeBuildLog(id) {
    return request({
        url: '/resource/project/seeBuildLog/' + id,
        method: 'get'
    })
}


export function getGitProjectList() {
    return request({
        url: '/resource/project/getGitProjectList',
        method: 'get'
    })
}


export function getModulList() {
    return request({
        url: '/resource/project/getModuleList',
        method: 'get'
    })
}

export function getModulJarList() {
    return request({
        url: '/resource/project/getModuleJarList',
        method: 'get'
    })
}







